Add ActorTemplate and ActorTemplateVersion as substrate resources; Add CRUD methods in redis package - #824
Open
Zoe Zhao (zoez7) wants to merge 9 commits into
Open
Add ActorTemplate and ActorTemplateVersion as substrate resources; Add CRUD methods in redis package#824Zoe Zhao (zoez7) wants to merge 9 commits into
Zoe Zhao (zoez7) wants to merge 9 commits into
Conversation
2 tasks
Zoe Zhao (zoez7)
force-pushed
the
atv-br-1.5
branch
2 times, most recently
from
August 10, 2026 20:26
8546ab7 to
47fb420
Compare
…ne proto
Introduce ActorTemplate (identity + placement policy) and
ActorTemplateVersion (immutable workload definition), along with the
supporting SandboxClass/SandboxConfig, SnapshotsConfig, ResumeSource,
and OnResumeConfig messages. Both resources are flat: workload and
status fields live directly on the message, like Actor.
The version State enum (nested in ActorTemplateVersion, like
Actor.Status) mirrors the existing ActorTemplateVersion CRD PhaseType
(RESUME_GOLDEN_ACTOR -> WAIT_GOLDEN_ACTOR -> {READY | FAILED}, with
UNSPECIFIED for the initial empty phase).
Zoe Zhao (zoez7)
force-pushed
the
atv-br-1.5
branch
from
August 10, 2026 20:58
47fb420 to
2216177
Compare
Adds per-resource store methods and the ateredis implementation for the two new global-scoped resources, following the Atespace/Actor patterns: SetNX creates with server-owned metadata, WATCH+version CAS update for ActorTemplate, and SCAN-based listing. ListActorTemplateVersions filters by parent after fetching (the parent lives in the value, not the key); matches count toward the page so pages stay full. DeleteActorTemplate rejects while any version names it as parent. DeleteActorTemplateVersion rejects while it is its parent's default_version_on_create and deletes the golden snapshot recorded in its status before removing the version record.
Zoe Zhao (zoez7)
force-pushed
the
atv-br-1.5
branch
from
August 10, 2026 22:07
2216177 to
8c86364
Compare
Zoe Zhao (zoez7)
force-pushed
the
atv-br-1.5
branch
5 times, most recently
from
August 11, 2026 15:34
bf7fb99 to
c07f05f
Compare
Zoe Zhao (zoez7)
force-pushed
the
atv-br-1.5
branch
from
August 11, 2026 16:15
c07f05f to
a8275db
Compare
Collaborator
Author
Zoe Zhao (zoez7)
force-pushed
the
atv-br-1.5
branch
from
August 11, 2026 20:46
8d3b6aa to
8f96c20
Compare
… similar to the ActorSnapshotTag style
Zoe Zhao (zoez7)
force-pushed
the
atv-br-1.5
branch
from
August 11, 2026 20:53
8f96c20 to
7eaf7f6
Compare
Collaborator
Author
Haven Xia (HavenXia)
approved these changes
Aug 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #477 .
All ATV fields are immutable. SandboxConifg will be frozen into ATV at creation time.
Adds per-resource store methods and the ateredis package for the AT and ATV as global resources.